#include <stdio.h>
#include <stdlib.h>
// #include <time.h>
// #include <string.h>

static int add(const int *a,const int *b ,const int times){   //返回处于第times位元素相加的值
    
    return a[times]+b[times];
}

int main(int argc,const char* argv[])
{   
    int a[]={2,4,6,8,10,12};
    int b[]={4,6,8,10,12,14};
    for(int i=0;i<sizeof(a)/sizeof(int);i++){
        printf("%d ",add(a,b,i));
    }
    printf("\n");
    return 0;
}